package com.aaa.stat.service.impl;


import com.aaa.entity.GSort;
import com.aaa.stat.dao.SortDao;
import com.aaa.stat.service.SortService;
import com.aaa.stat.vo.SortVo;
import com.aaa.vo.Result;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SortServiceImpl extends ServiceImpl<SortDao, GSort> implements SortService {

    @Autowired
    private SortDao sortDao;

    @Override
    public Result<List<SortVo>> findGoodsBySort() {

        List<SortVo> sortVos = sortDao.GoodsBySort();
        return new Result<>(2000,"统计成功",sortVos);
    }
}
